using System;
using System.Collections.Generic;
using FL.DBModule;
using FL.Lite;

namespace FL.SiteEntity
{
    [Serializable]
    [FL.DBModule.Table("t_site_ad", "id")]
    public class t_site_ad : BaseEntity
    {
        // 
        [Column]
        public Guid id
        { get; set; }
        //名称 
        [Column]
        public string name
        { get; set; }
        //占位符 
        [Column]
        public string placeholder
        { get; set; }
        //广告类型 
        [Column]
        public string type
        { get; set; }

        [Column]
        public string ref_script
        {
            get;
            set;
        }

        [Column]
        public string image_url
        {
            get;
            set;
        }

        [Column]
        public string link_url
        {
            get;
            set;
        }

        [Column]
        public int width
        {
            get;
            set;
        }
        [Column]
        public int height
        { get; set; }

        [Column]
        public int price
        {
            get;
            set;
        }
        // 
        [Column]
        public Guid add_user
        { get; set; }
        // 
        [Column]
        public DateTime add_time
        { get; set; }


        public IList<t_site_ad_image> iamges
        {
            get;
            set;
        }

    }

    [Serializable]
    [FL.DBModule.Table("t_site_ad_image", "id")]
    public class t_site_ad_image : BaseEntity
    {
        // 
        [Column]
        public Guid id
        { get; set; }
        // 
        [Column]
        public Guid ad_id
        { get; set; }
        // 
        [Column]
        public string image_url
        { get; set; }
        // 
        [Column]
        public string title
        { get; set; }
        // 
        [Column]
        public string click_url
        { get; set; }
        // 
        [Column]
        public string target
        { get; set; }

    }
}
